import java.util.Scanner;

public class program17 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        System.out.print("Enter the temperature in Fahrenheit between -58°F and 41°F: ");
        double ta = in.nextDouble();
        System.out.print("Enter the wind speed (>=2) in mph: ");
        double v = in.nextDouble();
        double wci = 35.74 + 0.6215 * ta
                - 35.75 * Math.pow(v, 0.16)
                + 0.4275 * ta * Math.pow(v, 0.16);
        System.out.printf("The wind chill index is %.5f%n", wci);
    }
}